#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include <windows.h>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void refresh(HWND h1,HWND h2);
public slots:
    void on_btn1_clicked();
    void on_btn2_clicked();
    void onTimeout();
private:
    Ui::MainWindow *ui;
    HWND wid1 = 0;
    HWND wid2 = 0;
    QTimer *m_timer = nullptr;
};
#endif // MAINWINDOW_H
